<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../baselist.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
</head>

<body>
<form name="icform" method="post">

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
  <div id="navMenubar">
<ul>
<li id="new"><a href="#" onclick="formSubmit('tocreate.action','_self');this.blur();">新增</a></li>
<li id="update"><a href="#" onclick="formSubmit('toupdate.action','_self');this.blur();">修改</a></li>
<li id="delete"><a href="#" onclick="formSubmit('deleteById.action','_self');this.blur();">删除</a></li>
</ul>
  </div>
</div>
</div>
</div>
   
<div class="textbox" id="centerTextbox">
  <div class="textbox-header">
  <div class="textbox-inner-header">
  <div class="textbox-title">
    系统用户列表
  </div> 
  </div>
  </div>
  
<div>

<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<thead>
	<tr>
		<td class="tableHeader"><input type="checkbox" name="selid" onclick="checkAll('id',this)"></td>
		<td class="tableHeader">序号</td>
		<td class="tableHeader">用户编码</td>
		<td class="tableHeader">姓名</td>
		<td class="tableHeader">手机号</td>
		<td class="tableHeader">邮箱</td>
		<td class="tableHeader">岗位</td>
		<td class="tableHeader">部门</td>
		<td class="tableHeader">状态</td>
	</tr>
	</thead>
	<tbody class="tableBody" >
	
	<c:forEach items="${dataList}" var="o" varStatus="status">
	<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
		<td><input type="checkbox" name="id" value="${o.id}"/></td>
		<td>${status.index+1}</td>
		<td><a href="toview.action?id=${o.id}">${o.userCode}</a></td>
		<td>${o.userName}</td>
		<td>${o.telphone}</td>
		<td>${o.email}</td>
		<td>
			<c:if test="${o.jobsCode==''}"></c:if>
			<c:if test="${o.jobsCode=='zjl'}">总经理</c:if>
			<c:if test="${o.jobsCode=='fzjl'}">副总经理</c:if>
			<c:if test="${o.jobsCode=='bmjl'}">部门经理</c:if>
			<c:if test="${o.jobsCode=='fgld'}">分管领导</c:if>
		</td>
		<td>
			<c:forEach items="${deptList}" var="dept">
				<c:if test="${dept.id == o.departmentId }">
					${dept.departmentName }
				</c:if>
			</c:forEach>
		</td>
		<td>
			<c:if test="${o.states==1 }">启用</c:if>
			<c:if test="${o.states==0 }">停用</c:if>
		</td>
	</tr>
	</c:forEach>
	
	</tbody>
</table>
</div>
<a href="list.action?pageNum=1">【首页】</a>		<a href="list.action?pageNum=${page.getPageNum()-1}">【上一页】</a>		<a href="list.action?pageNum=${page.getPageNum()+1}">【下一页】</a>		<a href="list.action?pageNum=${page.getPages()}">【尾页】</a> 		第${page.getPageNum()} 页  	  共 ${page.getPages()}页  共 ${page.getTotal()}条记录 
</div>
 
 
</form>
</body>
</html>

